<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 首页控制器
 * 
 * Enter description here ...
 * @author Administrator
 *
 */
class Log4php  
{
    
    public function __construct()
    {
    }
    
    public function debug($str)
    {
        if (is_array($str)) {
            $str = var_export($str, true);
        }
        $handle = fopen(APPPATH2 . "../data/debug.txt", "a");
        fwrite($handle, date("Y-m-d H:i:s "));
        
        fwrite($handle, $str);
        fwrite($handle, "\n");
        fclose($handle);
    }
    
    
    
	
}

